import { Tag } from 'antd';
import { history, useModel } from 'umi';
const Welcome: React.FC = () => {

  const { initialState } = useModel('@@initialState');
  return (
    <div>
      <Tag
        color="#f50"
        onClick={() => {
          history.push('/user/select?accountId=' + initialState?.currentUser?.id);
        }}
      >
        切换单位
      </Tag>
    </div>
  );
};

export default Welcome;
